package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.MyHistory;
import com.ruoyi.system.domain.vo.ChatVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MyHistoryMapper extends BaseMapper<MyHistory> {

    /**
     * 用户查询聊过的主题
     */
    List<ChatVo> tidList(@Param("uid") Long uid);

    /**
     * 主题查询聊过的用户
     */
    List<ChatVo> uidList(@Param("tid") Long tid, @Param("keyword") String keyword);

}
